package com.sniper.springmvc.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

/**
 * Created by suzhen on 2017/4/14.
 */
@Configuration
public class DataSourceConfig {

    @Autowired
    DruidConfig druidConfig;

    public DataSource getDataSource() {
        System.out.println("--");
        System.out.println(druidConfig.getUrl());
        return null;
    }
}
